import { reactive, onMounted, onUnmounted } from 'vue'
export   function useMousePosition() {
const point= reactive({
  x:0,
  y:0
});
  const updateMouse = (e) => {
    point.x = e.x
    point.y = e.y
  }
  onMounted(() => {
    window.addEventListener('click', updateMouse)
  })
  onBeforeMount(() => {
    window.removeEventListener('click', updateMouse);
  });
  return  point;
}
export  function extest(){
 return console.log('[ 1111 ] >', 1111)
}